module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  plugins: [
    // element-ui 按需加载
    [
      'component',
      {
        libraryName: 'element-ui',
        styleLibraryName: '~node_modules/element-ui/packages/theme-chalk/src',
        ext: '.scss',
      },
    ],
    // lodash 按需加载
    ['import', { libraryName: 'lodash', libraryDirectory: '', camel2DashComponentName: false }, 'lodash'],
  ],
};
